package com.day0928;

public class MainText2 {
    public static void main(String[] args) {
        ///  String 引用类型   父类  Object
        //  引用类型 == 判断的是内存地址
        String str = "123";
        Student student = new Student("张三",18,"10001");
        Student student1 = new Student("张三",18,"10001");
        Object[] object = new Object[5];
        object[0] = str;
        object[1] = student;
        System.out.println(student == student1);//判断的是内存地址
        System.out.println(student.equals(student1));//判断的是值


    }
}
